package cn.songdragon.zboschina;

import org.apache.http.Header;

public class HttpResponse {

	private int status;

	private String body;

	private String contentType;

	private Header[] headers;

	public HttpResponse() {

	}

	public HttpResponse(int status, String body, String contentType, Header[] headers) {
		this.status = status;
		this.body = body;
		this.contentType = contentType;
		this.headers = headers;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getBody() {
		if (body == null) {
			body = "";
		}
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String mediaType) {
		this.contentType = mediaType;
	}

	public Header[] getHeaders() {
		return headers;
	}

	public void setHeaders(Header[] headers) {
		this.headers = headers;
	}

}
